package com.exrobot.module.rbt.controller.admin.robotappversion.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 机器人APP版本新增/修改 Request VO")
@Data
public class RobotAppVersionSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "470")
    private Long id;

    @Schema(description = "版本号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "版本号不能为空")
    private Integer versionCode;

    @Schema(description = "版本名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "WF")
    @NotEmpty(message = "版本名称不能为空")
    private String versionName;

    @Schema(description = "下载地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "下载地址不能为空")
    private String downloadUrl;

    @Schema(description = "更新说明")
    private String releaseNotes;

    @Schema(description = "是否跟新说明", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否跟新说明不能为空")
    private Boolean forceUpdate;

}